package com.ph.irp.base.usermanager;

import org.springframework.context.ApplicationContext;

import com.ph.irp.BasicTest;

public class SpringAOPDemo extends BasicTest {
	private ApplicationContext ap;
	private IHello helloProxy;

	public void testGetAllUserList() throws Exception {
		ap = getContext(getConfigLocations());
		helloProxy = (IHello) ap.getBean("helloProxy1");

		try {
			helloProxy.hello("Justin");
		} catch (Throwable throwable) {
			System.err.println(throwable);
		}
		// assertNotNull(roleDao.getAllUserGroupList());
	}

//	public static void main(String[] args) {
//		ApplicationContext context = new FileSystemXmlApplicationContext(
//				"beans-config.xml");
//		IHello helloProxy = (IHello) context.getBean("helloProxy");
//
//		try {
//			helloProxy.hello("Justin");
//		} catch (Throwable throwable) {
//			// Ӧ�ó�������⴦��
//			System.err.println(throwable);
//		}
//	}
}
